﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding: 1px;">
		<t:datagrid name="userList${usertype}" title="用户管理"
			actionUrl="userController.do?datagrid&usertype=${usertype}" fit="true"
			fitColumns="true" idField="id" queryMode="group"
			sortName="userName" sortOrder="asc">
			<t:dgCol title="编号" field="id" hidden="false"></t:dgCol>
			<t:dgCol title="用户名" sortable="false" field="userName" query="true"
				width="80"></t:dgCol>
			<t:dgCol title="真实姓名" field="realName" query="true" width="50"></t:dgCol>
			<t:dgCol title="身份证" field="identity" query="true" width="120"></t:dgCol>
			<t:dgCol title="最近登录时间" field="lastlogin" width="140"
				formatter="yyyy-MM-dd hh:mm:ss"></t:dgCol>
			<t:dgCol title="登录IP" field="loginip" width="120"></t:dgCol>
			<t:dgCol title="状态" sortable="true" field="status"
				replace="正常_1,禁用_0,超级管理员_-1"></t:dgCol>
			<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
			<t:dgDelOpt title="删除"
				url="userController.do?del&id={id}&userName={userName}" />
			<t:dgToolBar title="用户录入" icon="icon-add"
				url="userController.do?addorupdate&usertype=${usertype}" funname="add"></t:dgToolBar>
			<t:dgToolBar title="用户编辑" icon="icon-edit"
				url="userController.do?addorupdate&usertype=${usertype}"
				funname="update"></t:dgToolBar>
		</t:datagrid>
	</div>
	<div region="east" style="width: 450px;" split="true">
		<div tools="#tt" class="easyui-panel" 
			style="padding: 10px;" fit="true" border="false" id="function-panel">
		</div>
	</div>
</div>
<script type="text/javascript">
function setclazz(id) {
		$("#function-panel").panel(
			{
				title :"管理班级"
			}
		);
		$('#function-panel').panel("refresh", "clazzController.do?toAssignClazz&id=" + id);
		
	}
</script>
